/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xmlutils;

import org.kxml.Attribute;
import org.kxml.kdom.Element;

/**
 *
 * @author Ayman
 */
public class LoopData {

    private String time = "";
    private String url = "";

    public LoopData(Element loopElement) {
        if (loopElement != null) {
            Attribute timeAttribute = loopElement.getAttribute("time");
            time = timeAttribute.getValue();
            url = loopElement.getText(0);
        }
    }

    public String getTime() {
        return time;
    }

    public String getUrl() {
        return url;
    }
}
